/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package base.message;

import java.io.Serializable;

/**
 * Constructs a bean out of a node id, a message counter and a time the message is sent
 * @author Arvanitis Ioannis
 */
public class MessageOriginBean implements Serializable{

    private int nodeId;
    private int messageId;
    private long transmissionTime;

    public MessageOriginBean(int nodeId, int messageId, long transmissionTime) {
        this.nodeId = nodeId;
        this.messageId = messageId;
        this.transmissionTime = transmissionTime;
    }

    public int getMessageId() {
        return messageId;
    }

    public void setMessageId(int messageId) {
        this.messageId = messageId;
    }

    public int getNodeId() {
        return nodeId;
    }

    public void setNodeId(int nodeId) {
        this.nodeId = nodeId;
    }

    public long getTransmissionTime() {
        return transmissionTime;
    }

    public void setTransmissionTime(long transmissionTime) {
        this.transmissionTime = transmissionTime;
    }

}
